Restrict
annotation class Restrict(val min: Long = Long.MIN_VALUE, val max: Long = Long.MAX_VALUE, val type: ValidatedNumber.WidgetType = WidgetType.SLIDER)
Annotation-driven validation for Longs
Author
fzzyhmstrs
Since
0.2.0, added widget type 0.6.3
Parameters
min
: Long - minimum allowable value, default to Long.MIN_VALUE
max
: Long - maximum allowable value, default to Long.MAX_VALUE
type
: ValidatedNumber.WidgetType - The "style" of the GUI widget for the annotated setting